package com.qzsoft.zhjd.machine.modules.stationmaintain.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qzsoft.zhjd.common.annotation.ZhjdDataFilter;
import com.qzsoft.zhjd.common.components.BaseServiceComponent;
import com.qzsoft.zhjd.machine.modules.stationmaintain.dto.StationMaintainDto;
import com.qzsoft.zhjd.machine.modules.stationmaintain.entity.StationMaintainEntity;
import com.qzsoft.zhjd.machine.modules.stationmaintain.mapper.StationMaintainMapper;
import com.qzsoft.zhjd.machine.modules.stationmaintain.service.StationMaintainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @ClassName StationMaintainEntity
 * @Description 拌和站维护保养记录
 * @author zhaij
 * @since 2021-08-23
 */
@Service
public class StationMaintainServiceImpl extends ServiceImpl<StationMaintainMapper, StationMaintainEntity> implements StationMaintainService {

    @Autowired
    private BaseServiceComponent baseServiceComponent;

    @ZhjdDataFilter(tableAlias = "m")
    @Override
    public IPage<StationMaintainDto> qryDto(Map<String, Object> params) {
        IPage<StationMaintainDto> page = baseServiceComponent.getPage(params,StationMaintainDto.class);
        IPage<StationMaintainDto> list = baseMapper.qryDto(page,params);
        return list;
    }
}
